﻿<UserControl x:Class="BattleforgeAssault.LocationView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    d:DesignHeight="300" d:DesignWidth="400">

    <UserControl.Resources>
        <LinearGradientBrush x:Key="zoneBackgroundBrush">
            <GradientStop Color="#EEE" />
            <GradientStop Color="#CCC" Offset="1" />
        </LinearGradientBrush>
    </UserControl.Resources>

    <Grid x:Name="LayoutRoot" Background="Transparent">
        <Grid.RenderTransform>
            <TransformGroup>
                <TranslateTransform x:Name="translation" />
            </TransformGroup>
        </Grid.RenderTransform>
        
        <Border x:Name="outline" Margin="4" BorderBrush="Black" Background="{StaticResource zoneBackgroundBrush}" CornerRadius="8" MouseLeftButtonDown="OnMouseDown">
            <StackPanel Orientation="Horizontal" HorizontalAlignment="Right" VerticalAlignment="Bottom" Margin="0 0 8 0">
                <TextBlock Text="{Binding Name}" FontSize="18" Margin="4" />
                <TextBlock Text="{Binding DamageTaken, StringFormat=(\{0\})}" Foreground="Crimson" Margin="4" VerticalAlignment="Center" />
            </StackPanel>
        </Border>

        <Border x:Name="dimmer" Margin="4" CornerRadius="8" Background="Black" Opacity="0" IsHitTestVisible="False" />
    </Grid>
</UserControl>
